import request from '@/utils/request'

// 查询食品检查列表
export function listOpmFoodSafeCheck(query) {
  return request({
    url: '/food/opmFoodSafeCheck/list',
    method: 'get',
    params: query
  })
}

// 查询食品检查详细
export function getOpmFoodSafeCheck(id) {
  return request({
    url: '/food/opmFoodSafeCheck/' + id,
    method: 'get'
  })
}

// 新增食品检查
export function addOpmFoodSafeCheck(data) {
  return request({
    url: '/food/opmFoodSafeCheck',
    method: 'post',
    data: data
  })
}

// 修改食品检查
export function updateOpmFoodSafeCheck(data) {
  return request({
    url: '/food/opmFoodSafeCheck',
    method: 'put',
    data: data
  })
}

// 删除食品检查
export function delOpmFoodSafeCheck(id) {
  return request({
    url: '/food/opmFoodSafeCheck/' + id,
    method: 'delete'
  })
}
